package ru.spb.osll.myfit.client.event;

/**
 * User: Artem Bukhonov
 * Date: 20.03.12
 * Time: 18:20
 */
public class TagAddEvent extends PageButtonEvent {
  private String m_tagName;
  private boolean m_alreadyExists = false;

  public TagAddEvent(String tagName) {
    super(PageButtonEventType.ADD_TAG);
    m_tagName = tagName;
  }

  public boolean isAlreadyExists() {
    return m_alreadyExists;
  }

  /*
  Event handler must set this flag to true if the given tag already exists
   */
  public void setAlreadyExists(boolean alreadyExists) {
    m_alreadyExists = alreadyExists;
  }

  public String getTagName() {
    return m_tagName;
  }
}
